<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>3D旋转</title>
    <style>
        div {
           perspective :300px;
            width: 152px;
            height: 202px;
            margin: 50px auto;
      
        } 

        p {
            width: 150px;
            height: 200px;
            border: 1px solid black;
       background-color: yellow;
            transform: rotateX(30deg);
        }
        p:hover{
            transform: none;
        }
    </style>
</head>

<body>
    <div>
        <p>
        </p>
    </div>
</body>

</html>